package cate.game.role.friend.aid.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBFriendAid;
import cate.game.friend.aid.ServerRoleAidHero;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "好友援助列表返回")
public class FriendAidListResp implements MsgOutput {
    @NoteField("功能ID")
    public int funcId;

    @NoteField("支援我的英雄")
    public List<ServerRoleAidHero> aidList;

    @NoteField(value = "我的借用英雄", detail = "如果有id，并且支援列表里不存在，说明好友删除了")
    public List<String> borrowHeros;

    @NoteField(value = "我的支援英雄", detail = "如果有id，并且背包里不存在，说明可能被献祭了")
    public List<String> aidHeros;

    public FriendAidListResp() {

    }

    public FriendAidListResp(int funcId, List<ServerRoleAidHero> aidList, List<String> borrowHeros, List<String> aidHeros) {
        this.funcId = funcId;
        this.aidHeros = aidHeros;
        this.aidList = aidList;
        this.borrowHeros = borrowHeros;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFriendAid.LIST_RESP;
    }
}
